/*
 * Copyright © 2018 Cask Data, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

@import "./variables.scss";

$header-color: $modal-header-color;
$modal-spacing: 10px;

.cdap-modal.modal-dialog {
  margin-top: 125px;
  .modal-content {
    border-radius: 0;
    border: 0;
  }

  .modal-header {
    padding: 0 $modal-spacing;
    background-color: $header-color;
    border-bottom: 0;
    height: 40px;
    display: flex;
    align-items: center;
    border-radius: 0;

    .modal-title {
      font-weight: normal;
      font-size: 14px;
      color: white;
      line-height: 40px;
      width: 100%;
      .fa,
      .icon-svg {
        cursor: pointer;
      }
    }
    button.close {
      background: transparent;
      border: 0;
      color: white;
      font-weight: bold;
      font-size: 18px;
      opacity: 1;
      text-shadow: none;
      padding: 0;
      float: none;
      margin: 0;
      &:hover,
      &:active,
      &:focus {
        outline: none;
      }
    }
  }

  .modal-body {
    padding: $modal-spacing;

    &.loading {
      padding: 25px;
      h3 {
        margin: 0;
        font-size: 45px;
      }
    }
  }
  .modal-footer {
    justify-content: flex-start;
    padding: $modal-spacing;
    .btn {
      margin: 0;
      &:first-of-type {
        margin-right: $modal-spacing;
      }
    }
  }
}
